package com.his.bean;

import java.io.Serializable;

/**
 * 保存微信公众平台菜单
 * @TableName dzm_his_wx_menu
 */
public class DzmHisWxMenu implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 医院id
     */
    private Integer hospitalId;

    /**
     * 主菜单ID
     */
    private Integer pid;

    /**
     * 菜单的响应动作类型
     */
    private String type;

    /**
     * 菜单标题，不超过16个字节，子菜单不超过60个字节
     */
    private String name;

    /**
     * 菜单KEY值，用于消息接口推送，不超过128字节
     */
    private String key;

    /**
     * 网页链接，用户点击菜单可打开链接，不超过1024字节。
     */
    private String url;

    /**
     * 调用新增永久素材接口返回的合法media_id
     */
    private String mediaId;

    /**
     * 
     */
    private String appid;

    /**
     * 小程序的页面路径
     */
    private String pagepath;

    /**
     * 排序 ASC
     */
    private Integer listorder;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 医院id
     */
    public Integer getHospitalId() {
        return hospitalId;
    }

    /**
     * 医院id
     */
    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 主菜单ID
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * 主菜单ID
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * 菜单的响应动作类型
     */
    public String getType() {
        return type;
    }

    /**
     * 菜单的响应动作类型
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 菜单标题，不超过16个字节，子菜单不超过60个字节
     */
    public String getName() {
        return name;
    }

    /**
     * 菜单标题，不超过16个字节，子菜单不超过60个字节
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 菜单KEY值，用于消息接口推送，不超过128字节
     */
    public String getKey() {
        return key;
    }

    /**
     * 菜单KEY值，用于消息接口推送，不超过128字节
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * 网页链接，用户点击菜单可打开链接，不超过1024字节。
     */
    public String getUrl() {
        return url;
    }

    /**
     * 网页链接，用户点击菜单可打开链接，不超过1024字节。
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 调用新增永久素材接口返回的合法media_id
     */
    public String getMediaId() {
        return mediaId;
    }

    /**
     * 调用新增永久素材接口返回的合法media_id
     */
    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    /**
     * 
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 小程序的页面路径
     */
    public String getPagepath() {
        return pagepath;
    }

    /**
     * 小程序的页面路径
     */
    public void setPagepath(String pagepath) {
        this.pagepath = pagepath;
    }

    /**
     * 排序 ASC
     */
    public Integer getListorder() {
        return listorder;
    }

    /**
     * 排序 ASC
     */
    public void setListorder(Integer listorder) {
        this.listorder = listorder;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisWxMenu other = (DzmHisWxMenu) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getKey() == null ? other.getKey() == null : this.getKey().equals(other.getKey()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getMediaId() == null ? other.getMediaId() == null : this.getMediaId().equals(other.getMediaId()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getPagepath() == null ? other.getPagepath() == null : this.getPagepath().equals(other.getPagepath()))
            && (this.getListorder() == null ? other.getListorder() == null : this.getListorder().equals(other.getListorder()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getKey() == null) ? 0 : getKey().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getMediaId() == null) ? 0 : getMediaId().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getPagepath() == null) ? 0 : getPagepath().hashCode());
        result = prime * result + ((getListorder() == null) ? 0 : getListorder().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", pid=").append(pid);
        sb.append(", type=").append(type);
        sb.append(", name=").append(name);
        sb.append(", key=").append(key);
        sb.append(", url=").append(url);
        sb.append(", mediaId=").append(mediaId);
        sb.append(", appid=").append(appid);
        sb.append(", pagepath=").append(pagepath);
        sb.append(", listorder=").append(listorder);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}